package adminDynamicEnumRepository

import (
	adminDynamicEnumModel "gitee.com/krio/ginc/example/internal/admin/dynamic/enum/model"
	commonEntry "gitee.com/krio/ginc/example/internal/common/entry/common"
	"github.com/gin-gonic/gin"
)

type DynamicEnumRepos interface {
	DynamicEnumAdd(ctx *gin.Context, one *adminDynamicEnumModel.DynamicEnum) (int64, error)
	DynamicEnumUpdate(ctx *gin.Context, req *adminDynamicEnumModel.DynamicEnum) (int64, error)
	DynamicEnumDelete(ctx *gin.Context, id []int64) error
	DynamicEnumDetail(ctx *gin.Context, ids int64) (*adminDynamicEnumModel.DynamicEnum, bool, error)
	DynamicEnumDetailByInfo(ctx *gin.Context, info *adminDynamicEnumModel.DynamicEnum) (*adminDynamicEnumModel.DynamicEnum, bool, error)
	DynamicEnumList(ctx *gin.Context, req *commonEntry.ListCommonReq) ([]*adminDynamicEnumModel.DynamicEnum, int64, error)
}

type DynamicEnumValueRepos interface {
	DynamicEnumValueAdd(ctx *gin.Context, one *adminDynamicEnumModel.DynamicEnumValue) (int64, error)
	DynamicEnumValueUpdate(ctx *gin.Context, req *adminDynamicEnumModel.DynamicEnumValue) (int64, error)
	DynamicEnumValueDelete(ctx *gin.Context, id []int64) error
	DynamicEnumValueDetail(ctx *gin.Context, ids int64) (*adminDynamicEnumModel.DynamicEnumValue, bool, error)
	DynamicEnumValueDetailByInfo(ctx *gin.Context, info *adminDynamicEnumModel.DynamicEnumValue) (*adminDynamicEnumModel.DynamicEnumValue, bool, error)
	DynamicEnumValueList(ctx *gin.Context, req *commonEntry.ListCommonReq) ([]*adminDynamicEnumModel.DynamicEnumValue, int64, error)
}
